package com.zy.stock.domain;

import java.util.Date;

/**
 * 账户股票持有关系
 * @author zhangyi
 *
 */
public class UserStockRl {

	private Integer id;//
	
	private Integer stockId;//股票id
	
	private String stockName;//股票名称
	
	private String stockCode;//股票编码
	
	private Integer userId;//用户id
	
	private String userName;//用户名称
	
	private String years;//年份 2015（买入卖出均可选） 2015其他（针对卖出） 2016（买入卖出均可选） 2016其他（针对卖出） 2017（买入卖出均可选） 2017其他（针对卖出）
	
	private String storeNum;//仓库编号 针对每年不止一次建仓的编码 生成规则为自增数字 从1开始 账户id_股票编码_年份_自增数字
	
	private String status;//1 建仓 2 首补 3 二次补仓 4 已卖出 5 其他（卖出之后剩余的部分）
	
	private Integer num;//股票数
	
	private Double cost;//成本
	
	private String description;//描述变更原因
	
	private Date createTime;
	
	private Date updateTime;
	
	private Double earnings;//当前浮动盈亏
	
	private Double staticEarnings;//累计盈亏 瞬时值 用于统计用
	
	private String earningsRate;//累计盈亏率 
	
	private String floatEarningsRate;//浮动盈亏率 
	
	public String getFloatEarningsRate() {
    return floatEarningsRate;
  }

  public void setFloatEarningsRate(String floatEarningsRate) {
    this.floatEarningsRate = floatEarningsRate;
  }

  public String getEarningsRate() {
    return earningsRate;
  }

  public void setEarningsRate(String earningsRate) {
    this.earningsRate = earningsRate;
  }

  public Double getStaticEarnings() {
		return staticEarnings;
	}

	public void setStaticEarnings(Double staticEarnings) {
		this.staticEarnings = staticEarnings;
	}

	public Double getEarnings() {
		return earnings;
	}

	public void setEarnings(Double earnings) {
		this.earnings = earnings;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getStockId() {
		return stockId;
	}

	public void setStockId(Integer stockId) {
		this.stockId = stockId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getYears() {
		return years;
	}

	public void setYears(String years) {
		this.years = years;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Double getCost() {
		return cost;
	}

	public void setCost(Double cost) {
		this.cost = cost;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getStockName() {
		return stockName;
	}

	public void setStockName(String stockName) {
		this.stockName = stockName;
	}

	public String getStockCode() {
		return stockCode;
	}

	public void setStockCode(String stockCode) {
		this.stockCode = stockCode;
	}

	public String getStoreNum() {
		return storeNum;
	}

	public void setStoreNum(String storeNum) {
		this.storeNum = storeNum;
	}		
}
